FROM java:openjdk-8-alpine
VOLUME /tmp
ADD ch-upms-1.0.0-SNAPSHOT.jar app.jar
RUN sh -c 'touch /app.jar'
ENV JAVA_OPTS="-Dnacos.config.server-addr=192.168.199.194:8848 -Dnacos.config.namespace="
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ]
